Method and system for visualizing a correlation mark using an electronic device

ABSTRACT

A mobile electronic device is used to decode a printed correlation mark. The device receives an image of a printed correlation mark, identifies a decoding template, applies the template to detect hidden content within the printed correlation mark, and outputs an image of the detected hidden content on the display. The device may enhance the image before presenting it on the display.

BACKGROUND

Security is an important requirement in many document productionapplications. In situations such as official or government documentprinting, event ticket printing, financial instrument printing and thelike, many documents must be protected against copying, forging and/orcounterfeiting. To do this, printed documents often include securitymarks that serve to prevent counterfeiting and/or identify a document asoriginal.

A correlation mark is one example of a security mark. A correlation markincludes one or more elements that are invisible or hardly visible on aprinted document. The hidden elements become visible when the documentis viewed through a correlation mask that serves as a “key” to thecorrelation mark. An example of a correlation mark is taught in U.S.Pat. No. 5,734,752 to Knox, titled “Digital watermarking usingstochastic screen.” Other examples are disclosed in U.S. Pat. No.7,894,626 to Wang et al., titled “System and method for the generationof multiple angle correlation-based digital watermarks,” as well as inU.S. Pat. No. 7,894,626 to Wang et al., titled “System and method forthe generation of multiple angle correlation-based digital watermarks”patterns.” The disclosures of each of these references are fullyincorporated herein by reference.

Although security markings such as correlation marks are effective onprinted documents, they require a special device (a “screen” or “key”)to decode them.

This document describes methods and systems for decoding a security markthat addresses at least some of the problems described above, and/orother problems.

SUMMARY

In an embodiment, an electronic device such as a mobile device is usedto detect and display hidden content in a printed or otherwise displayedcorrelation mark. The device receives an image of the correlation mark,identifies a decoding template, applies the template to detect hiddencontent within the correlation mark, and outputs an image of thedetected hidden content on a display.

When receiving the image, the device may use an image capture module(such as a camera) to capture the image. Alternatively, the device mayreceive the image as a data file from another source.

To identify the encoding template, the device may estimate a frequencyof the correlation mark, and it may generate the decoding template usingthe frequency. Optionally, the device may enhance the image beforepresenting it on the display. Optionally, to estimate the frequency ofthe printed correlation mark the device may apply a two-dimensionaldiscrete Fourier transform to the image and identify a peak locationbeyond a resulting main lobe of the transform as the frequency.

Optionally, to apply the template to detect hidden content, the devicemay high pass filter the captured image, multiply a result of thefiltering by the template, repeat the multiplying any number times toyield a set of multiplied results, and select one of the multipliedresults from the set as the best result. Optionally, when repeating themultiplication the device may do so on the template with a differentrelative shift as compared to previous instances of the multiplication.

Optionally, after applying the template, the device generating anenhanced the image of the detected hidden content. It may do so by, forexample: (1) dividing the into non-overlapping blocks; (2) for eachblock, determining an average of an application of the template topixels within the block; (3) assigning a value of 1 to each pixel in anyblock for which the determined average is positive; and (4) assigning anegative or zero value to each pixel in any block for which thedetermined average is negative or zero. Then, when causing the image ofthe detected hidden content to be presented on the display, the devicemay output the enhanced image.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1 and 2 represent a top “view” and a profile “view” of a pair ofconjugate line screens that a computing device may use to create acorrelation mark.

FIG. 3 is an enlarged example of a correlation mark of the prior art.

FIG. 4 is a flow diagram illustrating a process by which a mobileelectronic device may decode a security mark.

FIG. 5 illustrates an example of a decoded correlation mark as displayedon an electronic display.

FIGS. 6A and 6B show an example of a mobile electronic device.

FIG. 7 is a block diagram showing various equipment that may be used toimplement various embodiments of the processes described in thisdocument.

DETAILED DESCRIPTION

This disclosure is not limited to the particular systems, devices andmethods described, as these may vary. The terminology used in thedescription is for the purpose of describing the particular versions orembodiments only, and is not intended to limit the scope.

As used in this document, the singular forms of any word, and definingadjectives such as “a,” “an” and “the,” each include plural referencesunless the context clearly dictates otherwise. Unless defined otherwise,all technical and scientific terms used herein have the same meanings ascommonly understood by one of ordinary skill in the art. As used in thisdocument, the term “comprising” means “including, but not limited to.”

The term “security mark” refers to a marking made on a document that canbe used to verify the authenticity of the document, and thus may helpprevent counterfeiting or unauthorized duplication of the document.Examples of such marks include those known as correlation marks, whichwill be described in more detail below.

An “electronic device” is a device that includes a processor andnon-transitory computer-readable memory. The memory contains programminginstructions in the form of a software application that, when executedby the processor, causes the device to perform various operationsaccording to the programming instructions. Examples of electronicdevices include computers and servers, as well as mobile electronicdevices such as smartphones, personal digital assistants, cameras,tablet devices, electronic readers, media players, satellite navigationdevices and the like.

An “image capture module” refers to a software application and/or animage sensor device of an electronic device that is capable of opticallyviewing a scene and converting an interpretation of that scene intoelectronic signals so that the interpretation is saved to a digitalimage file comprising a still image.

The terms “memory” and “computer-readable medium” each refer to anon-transitory device on which computer-readable data, programminginstructions or both may be stored. Unless the context specificallystates that a single device is required or that multiple devices arerequired, the terms “memory” and “computer-readable medium” include boththe singular and plural embodiments, as well as portions of such devicessuch as memory sectors.

A “processor” is a component of an electronic device that executesprogramming instructions. The term “processor” may refer to either asingle processor or to multiple processors that together implementvarious steps of a process. Unless the context specifically states thata single processor is required or that multiple processors are required,the term “processor” includes both the singular and plural embodiments.

A correlation mark is a security mark containing one or more elementsthat are invisible or hardly visible on a printed document. These hiddenelements become visible when the document is viewed through acorrelation mask that serves as a “key” to the correlation mark. Anexample of a correlation mark is taught in U.S. Pat. No. 5,734,752 toKnox, titled “Digital watermarking using stochastic screen patterns,”the disclosure of which is incorporated herein by reference in itsentirety. Correlation marks typically require no special materials forthe printing process. A correlation mark is typically robust, and can becopied by ordinary duplication methods.

Correlation marks can be detected either by scanning or capturing animage of a document containing the mark and processing thescanned/captured image, or by overlaying a transparency containing a“key” on top of the document to reveal the hidden watermark. A patternprinted onto a transparency is an example of such a transparency, whichmay be referred to as a correlation mask. The pattern in the mask may bea screen, such as a stochastic screen or line screen, that correspondsto pixel elements of mark. Aligning the correlation mask to the printeddocument or image causes a correlation image to become visible.

To generate a correlation mark, the system may retrieve and/or print astochastic screen pattern and/or line screen pattern for the mark thatis stored in a memory. Or, the system may generate a correlation mark byproducing a first screen pattern for the foreground of the mark, and asecond screen pattern for the background, using methods such as thosedescribed in U.S. Pat. No. 5,734,752.

The first and second screens may be conjugate line screens that areidentical except with respect to their phase. For example, FIG. 1illustrates a pair of line screens 101, 102 that are identical except inthat the lines of the second screen 102 appear in a 180 degree phaseshift with respect to the lines of the first screen 101. The view ofFIG. 1 is a top view of each screen. FIG. 2 provides a profile view thatcan correspond to either of the screens 101, 102 of FIG. 1, as bothscreens share the same profile but have a different phase. When anelectronic device generates a correlation mark using the screens, themark's foreground and background will have similar average color andtexture patterns, but will exhibit a different phase shift in texture.Thus, any characters hidden in the resulting mark will not be readilyvisible without the use of a key (a decoding device that includes astochastic screen).

FIG. 3 shows an enlarged example of a correlation mark 110 that may beproduced in accordance with the prior art. In this magnification, onewho studies the mark closely may see the outlines of a mark containingthe hidden characters “34.” Typically, a correlation mark such as thiswould be printed in a small, thumbnail size (such as about ¼ inch inheight). When printed at a small size, the mark will appear to the humaneye as substantially a constant gray pattern, and the hidden characterswill not be visible without the use of a key. Note that while the mark110 of FIG. 3 is printed as 100% black and white for the purpose of thisillustration, it may be printed in shades of gray or color.

FIG. 4 is a flowchart illustrating various steps that may be used todecode the mark using a portable electronic device rather than astochastic screen. First, a user may cause the device to capture animage of a correlation mark that is printed on a substrate (step 401).The device may capture this image via the image sensing module using anysuitable software application, such as a camera application, a barcodescanning application, or a dedicated correlation mark detectionapplication. Optionally, the device may detect a border of thecorrelation mark and output, via the display or audio output, a commandor cue to move closer to or further away from the mark, or to adjust aposition of the device so that the image is taken from directly over themark rather than at an angle with respect to the mark. Examples of suchprocesses and visual cues are disclosed in U.S. patent application Ser.No. 13/968,534, filed by Bala, titled “Mobile Document Capture Assistfor Optimized Text Recognition,” as well as in U.S. Patent ApplicationPub. No. 2013/0140356, filed by Fan et al., titled “Camera PositioningTool for Symbology Reading,” the disclosures of which are fullyincorporated herein by reference.

By executing programming instructions, the device's processor (or aprocessor that receives the image from the device) may estimate afrequency of the printed correlation mark (step 402). The processor maydo this using a two-dimensional Fourier method, such as those which arenow or hereafter known in the art to convert spatial domain image datainto the frequency domain. This process may identify an image having aset of rows and a set of columns, and it may return a two-dimensionalFFT of each column in the matrix by applying a two-dimensional FFT tothe image. For line screens, this may be simplified using twoone-dimensional discrete Fourier transforms (DFTs), one on the verticaldirection and one in the horizontal direction. The peak locations beyondthe main lobe will reveal the screen frequency.

The processor may then generate a decoding template (step 403) using theestimated frequency. The template will comprise a periodic pattern thatbears the same frequency as the detected screen frequency. The templatemay be static, or dynamic in that it changes as the screen patternchanges. For example, in some embodiments, the template may comprise asinusoid that bears the same frequency as the detected screen frequency.Specifically, the template t(x,y) may be generated as:t(x,y)=sin[2π(xP _(x) +yP _(y))],

where P_(x) and P_(y) are the x and y components of the detected screenperiod, respectively. The processor may then apply the template to thecaptured image to detect hidden content within the printed correlationmark (step 404). For example, the system may apply a template matchingprocess by high pass filtering the captured image in the spatial orfrequency domain, and then multiply the result of the filtering processby the template. The processor may shift the template any number (N) oftimes, each with an evenly spaced shift from 0 degrees to 180 degrees,and then repeat the multiplication. For each iteration k, E_(k), theprocessor may determine the total energy of the resulting image as:E _(k) =Σf _(k)(x,y)²

where f_(k) (x, y) is the matching result for the k^(th) iteration:

$\begin{matrix}{{f_{k}\left( {x,y} \right)} = {{{i\left( {x,y} \right)}{t\left( {{x + \frac{{kP}_{x}}{2N}},y} \right)}\mspace{31mu}{if}\mspace{14mu} T_{x}} \neq 0}} \\{= {{{i\left( {x,y} \right)}{t\left( {x,{y + \frac{{kP}_{y\;}}{2N}}} \right)}\mspace{31mu}{if}\mspace{14mu} T_{x}} = 0}}\end{matrix}$

where t(x, y) and i(x, y) are the values of the template t and image iafter high pass filtering, respectively. The iteration with the maximumE_(k), may be considered the best iteration, and its result may adoptedas the result for an image that displays hidden content within thecorrelation mark.

The brightness and contrast of the resulting image can be furtherexamined to see if the image appears too dark or has insufficientcontrast. In some embodiments, the brightness of the image may bedetermined as a mean, median, average or mode of each of the pixelbrightness values in the image. If the image exhibits a brightness thatis below a threshold or has a contrast that is below a threshold, theprocessor may further enhance the resulting image by dividing it intonon-overlapping blocks, each covering one or more screen periods.

To perform the enhancement, for each block, the processor may determinean average of the matching result, specifically the average value off_(kmax)(x, y), where k_(max) is the iteration with the maximum energyE_(k). Then, the system may output a contrast-enhanced image byassigning a value of 1 to each pixel in a block where the matchingaverage is positive. Otherwise, for each block having a matching averagethat is negative or zero, the system may set the value of each pixel inthe block to zero or a negative value (e.g., −1).

Finally, the processor will cause output the detected hidden content onthe display (step 405). An example of this is shown in FIG. 5, whichillustrates presents a captured image 501 before the decoding processstarts, a detection result after processing but before enhancement 502,and an enhanced image 503 revealing the letter “a” as hidden content.

FIG. 6A shows a front view of an example of a mobile electronic device,generally designated 600. The mobile electronic device 600 may include afront face 602 and a display 604. The display 604 may be any suitablecomponent for displaying images, such as, but not limited to, anelectroluminescent display, electronic paper display, light emittingdiode (LED) display, liquid crystal (LCD) display, plasma display panel,digital light processing (DLP) display, and organic light-emitting diode(OLED) display. The display 604 may further include a touch sensitivescreen, such as, but not limited to, resistive touchscreens, capacitivetouchscreens, and infrared touchscreens. The device also may include anaudio output 605 such as a speaker.

FIG. 6B shows a rear face 612 of the mobile electronic device 600. Therear face 612 may include an image capture device 614. The image capturedevice 614 may be any suitable component capable of receiving an opticalimage and transmitting the information to other components forprocessing.

While the image capture device 614 is depicted on the rear face of thepresent example, persons skilled in the art will appreciate that theimage capture device 614 may be positioned at any location upon any faceof the mobile device 600, or it may even be external to the mobiledevice 600 and connected by any means of electronic communication, suchas, but not limited to, physical cable communication such as universalserial bus (USB), wireless radio communication, wireless lightcommunication, or near field communication technology.

FIG. 7 depicts a block diagram of various hardware that may be used tocontain or implement the various computer processes and systems asdiscussed above. For example, the electronic device 600 of FIGS. 6A and6B may contain elements such as those shown in FIG. 7. An electrical bus1000 serves as the main information highway interconnecting the otherillustrated components of the hardware. CPU 1005 is the centralprocessing unit of the system, representing a processor (which may be asingle processing device or multiple processing devices) performingcalculations and logic operations required to execute a program. CPU1005, alone or in conjunction with one or more of the other elementsdisclosed in FIG. 7, is a processing device, computing device orprocessor as such terms are used within this disclosure. Read onlymemory (ROM) 1010 and random access memory (RAM) 1015 constituteexamples of memory devices.

A controller 1020 interfaces with one or more optional memory devices1025 to the system bus 1000. These memory devices 1025 may include, forexample, an external or internal DVD drive, a CD ROM drive, a harddrive, flash memory, a USB drive or the like. As indicated previously,these various drives and controllers are optional devices. Additionally,the memory devices 1025 may be configured to include individual filesfor storing any software modules or instructions, auxiliary data,incident data, common files for storing groups of contingency tablesand/or regression models, or one or more databases for storing theinformation as discussed above.

Program instructions, software or interactive modules for performing anyof the functional steps associated with the processes as described abovemay be stored in the ROM 1010 the RAM 1015, and/or any othernon-transitory computer-readable medium. Optionally, the programinstructions may be stored on a computer readable medium such as acompact disk, a digital disk, flash memory, a memory card, a USB drive,an optical disc storage medium, a distributed storage medium such as acloud-based architecture, and/or other recording medium.

A display interface 1030 may permit information to be displayed on thedisplay 1035 in audio, visual, graphic or alphanumeric format. Forexample, the correlation mark or decoded data discussed above may beoutput on the display 1035. Communication with external devices mayoccur using various communication ports 1040. A communication port 1040may be attached to a communications network, such as the Internet or alocal area network.

The hardware may also include an interface 1045 which allows for receiptof data from input devices such as a keyboard 1050 or other input device1055 such as a mouse, a joystick, a touch screen, a remote control, apointing device, a video input device and/or an audio input device. Theimage sensing device described in FIGS. 6A and 6B also may be an exampleof an input device 1055.

The features and functions disclosed above, as well as alternatives, maybe combined into many other different systems or applications. Variouspresently unforeseen or unanticipated alternatives, modifications,variations or improvements may be made by those skilled in the art, eachof which is also intended to be encompassed by the disclosedembodiments.

The invention claimed is:
 1. A mobile electronic device configured tocapture and display hidden data in a correlation mark, the devicecomprising: a processor; a display; an image capture module; and acomputer-readable memory containing programming instructions that, whenexecuted, cause the processor to: receive, via the image capture module,an image of a printed correlation mark; identify a dynamic decodingtemplate, wherein a frequency of the dynamic decoding template changesas the image of the printed correlation mark changes; apply the templateto detect hidden content within the printed correlation mark; and outputan image of the detected hidden content on the display.
 2. The device ofclaim 1, further comprising additional programming instructions that,when executed, cause the processor to: estimate a frequency of theprinted correlation mark; and to identify the decoding template,generate the decoding template using the frequency.
 3. The device ofclaim 2, wherein the instructions to estimate a frequency of the printedcorrelation mark comprise instructions to: apply a two-dimensionaldiscrete Fourier transform to the image; and identify a peak locationbeyond a resulting main lobe of the transform as the frequency.
 4. Thedevice of claim 1, wherein the instructions to apply the template todetect hidden content comprise instructions to: high pass filter thecaptured image and then multiply a result of the filtering by thetemplate; repeat the step of multiplying the result of the filtering bythe template a plurality of times to yield a plurality of multipliedresults; and select one of the multiplied results as a best result. 5.The device of claim 4, wherein the instructions to repeat the step ofmultiplying the result of the filtering by the template a plurality oftimes to yield a plurality of multiplied results comprise, for each stepof multiplying, performing the multiplying on the template with adifferent relative shift.
 6. The device of claim 1, further comprisingadditional programming to, after applying the template: generate anenhanced image of the detected hidden content by: dividing the imageinto non-overlapping blocks, for each block, determining an average ofan application of the template to pixels within the block, assigning avalue of 1 to each pixel in any block for which the determined averageis positive, and assigning a negative or zero value to each pixel in anyblock for which the determined average is negative or zero; and whenoutputting the image of the detected hidden content on the display,outputting the enhanced image.
 7. A method of capturing and displayinghidden data in a correlation mark, the method comprising: by a processorof an electronic device: receiving an image of a correlation mark;identifying a dynamic decoding template, wherein a frequency of thedynamic decoding template changes as the image of the printedcorrelation mark changes; applying the template to detect hidden contentwithin the correlation mark; generating an image comprising the detectedhidden content; and causing the image with the detected hidden contentto be presented on a display of the electronic device.
 8. The method ofclaim 7, further comprising: by an image capture module of theelectronic device, capturing the image of the printed correlation mark.9. The method of claim 7: further comprising, by the processor,estimating a frequency of the correlation mark; and wherein identifyingthe decoding template comprises generating the decoding template usingthe frequency.
 10. The method of claim 9, wherein estimating thefrequency of the correlation mark comprises: applying a two-dimensionaldiscrete Fourier transform to the image; and identifying a peak locationbeyond a resulting main lobe of the transform as the frequency.
 11. Themethod of claim 7, wherein applying the template to detect hiddencontent comprises: high pass filtering the captured image: multiplying aresult of the filtering by the template; repeating the multiplying aplurality of times to yield a plurality of multiplied results; andselecting one of the multiplied results as a best result.
 12. The methodof claim 11, wherein repeating the multiplying a plurality of times toyield a plurality of multiplied results comprises, for each instance ofthe multiplying, performing the multiplying on the template with adifferent relative shift.
 13. The method of claim 7, further comprising,by the processor: after applying the template, generating an enhancedimage of the detected hidden content by: dividing the image intonon-overlapping blocks, for each block, determining an average of anapplication of the template to pixels within the block, assigning avalue of 1 to each pixel in any block for which the determined averageis positive, and assigning a negative or zero value to each pixel in anyblock for which the determined average is negative or zero; and whencausing the image with the detected hidden content to be presented onthe display, outputting the enhanced image.
 14. A non-transitorycomputer-readable medium containing programming instructions configuredto, when executed, cause a processor of an electronic device to: receivean image of a correlation mark; identify a dynamic decoding template,wherein the dynamic decoding template changes as the image of theprinted correlation mark changes; apply the template to detect hiddencontent within the correlation mark; generate an image comprising thedetected hidden content; and cause the image with the detected hiddencontent to be presented on a display of the electronic device.
 15. Thecomputer-readable medium of claim 14, wherein the instructions furthercomprise instructions to cause an image capture module of the electronicdevice to capture the image of the correlation mark.
 16. Thecomputer-readable medium of claim 14, wherein: the instructions furthercomprise instructions to estimate a frequency of the printed correlationmark; and the instructions to identify the decoding template compriseinstructions to generate the decoding template using the frequency. 17.The computer-readable medium of claim 16, wherein the instructions toestimate the frequency of the printed correlation mark compriseinstructions to: apply a two-dimensional discrete Fourier transform tothe image; and identify a peak location beyond a resulting main lobe ofthe transform as the frequency.
 18. The computer-readable medium ofclaim 14, wherein the instructions to apply the template to detecthidden content comprise instructions to: high pass filter the capturedimage: multiply a result of the filtering by the template; repeat themultiplying a plurality of times to yield a plurality of multipliedresults; and select one of the multiplied results as a best result. 19.The computer-readable medium of claim 18, wherein the instructions torepeat the multiplying a plurality of times to yield a plurality ofmultiplied results comprise instructions to, for each instance ofmultiplying, perform the multiplying on the template with a differentrelative shift.
 20. The computer-readable medium of claim 14, furthercomprising: instructions to, after applying the template, generate anenhanced image of the detected hidden content by: divide the image intonon-overlapping blocks, for each block, determine an average of anapplication of the template to pixels within the block, assign a valueof 1 to each pixel in any block for which the determined average ispositive, and assign a negative or zero value to each pixel in any blockfor which the determined average is negative or zero, instructions tooutput the enhanced image when causing the image of the detected hiddencontent to be presented on the display.
 21. A mobile electronic deviceconfigured to capture and display hidden data in a correlation mark, thedevice comprising: a processor; a display; an image capture module; anda computer-readable memory containing programming instructions that,when executed, cause the processor to: receive, via the image capturemodule, an image of a printed correlation mark; identify a decodingtemplate; apply the template to detect hidden content within the printedcorrelation mark by: high pass filtering the captured image and thenmultiplying a result of the filtering by the template, repeating thestep of multiplying the result of the filtering by the template aplurality of times to yield a plurality of multiplied results, andselecting one of the multiplied results as a best result; and output animage of the detected hidden content on the display.
 22. The device ofclaim 21, wherein the instructions to repeat the step of multiplying theresult of the filtering by the template a plurality of times to yield aplurality of multiplied results comprise, for each step of multiplying,performing the multiplying on the template with a different relativeshift.
 23. A method of capturing and displaying hidden data in acorrelation mark, the method comprising: by a processor of an electronicdevice: receiving an image of a correlation mark; identifying a decodingtemplate; applying the template to detect hidden content within thecorrelation mark by: high pass filtering the captured image, multiplyinga result of the filtering by the template, repeating the multiplying aplurality of times to yield a plurality of multiplied results, andselecting one of the multiplied results as a best result; generating animage comprising the detected hidden content; and causing the image withthe detected hidden content to be presented on a display of theelectronic device.
 24. The method of claim 23, wherein repeating themultiplying a plurality of times to yield a plurality of multipliedresults comprises, for each instance of the multiplying, performing themultiplying on the template with a different relative shift.
 25. Anon-transitory computer-readable medium containing programminginstructions configured to, when executed, cause a processor of anelectronic device to: receive an image of a correlation mark; identify adecoding template; apply the template to detect hidden content withinthe correlation mark; generate an image comprising the detected hiddencontent by: high pass filtering the captured image, multiplying a resultof the filtering by the template, repeat the multiplying a plurality oftimes to yield a plurality of multiplied results, and selecting one ofthe multiplied results as a best result; and cause the image with thedetected hidden content to be presented on a display of the electronicdevice.
 26. The computer-readable medium of claim 25, wherein theinstructions to repeat the multiplying a plurality of times to yield aplurality of multiplied results comprise instructions to, for eachinstance of multiplying, perform the multiplying on the template with adifferent relative shift.
 27. A mobile electronic device configured tocapture and display hidden data in a correlation mark, the devicecomprising: a processor; a display; an image capture module; and acomputer-readable memory containing programming instructions that, whenexecuted, cause the processor to: receive, via the image capture module,an image of a printed correlation mark; identify a decoding template;apply the template to detect hidden content within the printedcorrelation mark; generate an enhanced image of the detected hiddencontent by: dividing the image into non-overlapping blocks, for eachblock, determining an average of an application of the template topixels within the block, assigning a value of 1 to each pixel in anyblock for which the determined average is positive, and assigning anegative or zero value to each pixel in any block for which thedetermined average is negative or zero; and output the enhanced image ofthe detected hidden content on the display.
 28. A method of capturingand displaying hidden data in a correlation mark, the method comprising:by a processor of an electronic device: receiving an image of acorrelation mark; identifying a decoding template; applying the templateto detect hidden content within the correlation mark; generating anenhanced image of the detected hidden content by: dividing the imageinto non-overlapping blocks, for each block, determining an average ofan application of the template to pixels within the block, assigning avalue of 1 to each pixel in any block for which the determined averageis positive, and assigning a negative or zero value to each pixel in anyblock for which the determined average is negative or zero; and causingthe enhanced image with the detected hidden content to be presented on adisplay of the electronic device.
 29. A non-transitory computer-readablemedium containing programming instructions configured to, when executed,cause a processor of an electronic device to: receive an image of acorrelation mark; identify a decoding template; apply the template todetect hidden content within the correlation mark; generate an enhancedimage of the detected hidden content by: dividing the intonon-overlapping blocks, for each block, determining an average of anapplication of the template to pixels within the block, assigning avalue of 1 to each pixel in any block for which the determined averageis positive, and assigning a negative or zero value to each pixel in anyblock for which the determined average is negative or zero; and causethe enhanced image with the detected hidden content to be presented on adisplay of the electronic device.